package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能描述： $ CommonResponse
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2019年12月20日 13时58分01秒
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "公共返回报文")
public class CommonResponse<T> {
    public CommonResponse(T body) {
        this.body = body;
    }

    @ApiModelProperty(value = "公共返回报文头")
    private ResponseHeader header = new ResponseHeader();

    @ApiModelProperty(value = "报文体")
    T body;
}
